<!DOCTYPE html>
<html>
<head>
  <meta content="text/html;charset=UTF-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  <title>国家公路网综合养护管理系统</title>
  <link rel="shortcut icon" th:href="@{/common/images/logo.png}" />
  <!-- Tell the browser to be responsive to screen width -->
  <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}"/>
<link rel="stylesheet" th:href="@{/plugins/layui/css/layui.css}"/>
  <link rel="stylesheet" th:href="@{/common/js/miniui/res/font-awesome/css/font-awesome.min.css}"/>
  <link th:href="@{/common/css/animate.css}" rel="stylesheet" />
  <link th:href="@{/common/css/style.css}" rel="stylesheet" />
  <!-- jQuery 2.2.3 -->
  <script th:src="@{/plugins/jQuery/jquery-2.2.3.min.js}"></script>
   <script th:src="@{/plugins/jQuery/jquery.cookie.js}"></script>
  <script th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
  <script th:src="@{/plugins/metisMenu/jquery.metisMenu.js}"></script>
  <script th:src="@{/plugins/slimScroll/jquery.slimscroll.min.js}"></script>
<script th:src="@{/plugins/layui/layui.js}" type="text/javascript"></script>
  <script th:src="@{/common/js/hplus.js}"></script>
  <script th:src="@{/common/js/contabs.js}"></script>
</head>
<body  class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
 <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span><img alt="image" class="img-circle" width="64" height="64" th:src="@{/dist/img/user2-160x160.jpg}" /></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold"></strong></span>
                                <span class="text-muted text-xs block" style="padding:5px;"><strong class="font-bold"><span class="hidden-xs" th:text="${user.name}"></span></strong><b class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a class="J_menuItem" th:href="@{/cropbox}">修改头像</a>
                                </li>
                                <li><a class="J_menuItem" href="profile.html">个人资料</a>
                                </li>
                                <li class="divider"></li>
                                <li><a onclick="logout()" >安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element"><img th:src="@{/common/images/logo.png}" style="vertical-align:middle;padding-right:10px;" />
                        </div>
                    </li>
                    <!-- 一级菜单 -->
                    <li th:if="${sysId ne null}" th:each="pas:${user.getNextModules(sysId)}" >
                       
                        <a  href="javascript:void(0);" ><i class="fa fa-navicon"></i>
                        	<span class="nav-label" th:text="${pas.moduleName}"></span><span class="fa arrow"></span></a>
                        	
                        <!-- 二级菜单 -->
                        <ul class="nav nav-second-level">
                            
                            <li th:each="item:${user.getNextModules(pas.id)}">
                                	<a class="J_menuItem" th:if="${user.isLeaf(item.id) eq '1'} and ${item.serverId ne null}" th:href="${item.serverId+'/'+item.moduleLink}" th:id="${'item_'+item.id}">
                                		<span class="nav-label" th:text="${'&nbsp;&nbsp;' +item.moduleName}"></span></a>
                                		
                                	<a class="J_menuItem" th:if="${user.isLeaf(item.id) eq '1'} and ${item.serverId eq null}"  th:href="${item.moduleLink}" th:id="${'item_'+item.id}">
                                		<span class="nav-label" th:text="${'&nbsp;&nbsp;' +item.moduleName}"></span></a>
                                	
                                	<a  th:if="${user.isLeaf(item.id) eq '0'}"  href="javascript:void(0);">
                                		<span class="nav-label" th:text="${'&nbsp;&nbsp;' +item.moduleName}"></span><span class="fa arrow"></span></a>
                                
                                <!-- 三级菜单 -->	
                                <ul  class="nav nav-third-level" th:each="three:${user.getNextModules(item.id)}" th:if="${three.isMenu eq '1'}">
                                    
                                    <li>
                                    	<a  class="J_menuItem" th:href="${three.moduleLink}" th:id="${'item_'+item.id}"  >
                                    		<span th:text="${three.moduleName}"></span></a>
                                    </li>
                                </ul>
                                
                            </li>
                            
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header" style="width:0"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                    </div>
                    <ul class="nav navbar-top-links navbar-right"  th:if="${user ne null}">
                        <li class="dropdown" th:each="mods:${user.modules}" th:if="${#lists.size(#strings.listSplit(mods.parentIds,',')) eq 2}" >
                            <a th:href="${mods.moduleName eq '首页'}?@{/}:@{/index(sysId=${mods.id})}" th:text="${mods.moduleName}"></a>
                        </li>
                        <li class="dropdown hidden-xs">
		                            <a class="right-sidebar-toggle" aria-expanded="true">
		                                <i class="fa fa-tasks"></i> 主题
		                            </a>
		                 </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="appli">首页</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>

                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%" th:src="@{/appli}"  frameborder="0" data-id="appli" seamless="seamless"></iframe>
            </div>
            <!-- <div class="footer">
                <div class="pull-right">&copy; <b>Version</b> 0.0.1 
                </div>
            </div> -->
        </div>
        <!--右侧部分结束-->
        <!--右侧边栏开始-->
        <div id="right-sidebar">
            <div class="sidebar-container">

                <ul class="nav nav-tabs navs-3">

                    <li class="active">
                        <a data-toggle="tab" href="#tab-1">
                            <i class="fa fa-gear"></i> 主题
                        </a>
                    </li>
                </ul>

                <div class="tab-content">
                    <div id="tab-1" class="tab-pane active">
                       
                        <div class="skin-setttings">
                            <div class="title">皮肤选择</div>
                            <div class="setings-item default-skin nb">
                                <span class="skin-name ">
                         <a href="#" class="s-skin-0">
                             默认皮肤
                         </a>
                    </span>
                            </div>
                            <div class="setings-item blue-skin nb">
                                <span class="skin-name ">
                        <a href="#" class="s-skin-1">
                            蓝色主题
                        </a>
                    </span>
                            </div>
                            <div class="setings-item yellow-skin nb">
                                <span class="skin-name ">
                        <a href="#" class="s-skin-3">黄色/紫色主题</a>
                    </span>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <!--右侧边栏结束-->
    </div>
 <script  th:inline="javascript" type="text/javascript">
 /*<![CDATA[*/
var basePath = /*[[@{/}]]*/
var layer=null;
layui.use('layer', function(){ //独立版的layer无需执行这一句
	  var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
});	

function logout(){
	layer.confirm('确定退出系统？', {
		  title:"提醒",
		  btn: ['退出','取消'] //按钮
		  ,closeBtn: 0
		}, function(){
		  location.href=basePath+"logout";
		}, function(){
		  
		});
}
/*]]>*/
</script>
</body>
</html>